/* 收货地址页面样式 */
.address-page {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏 */
.address-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background-color: #f0f0f0;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
  text-align: center;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background-color: #f0f0f0;
}

/* 内容区域 */
.address-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.empty-state {
  text-align: center;
}

.empty-text {
  font-size: 16px;
  color: #999;
  margin: 0;
}

/* 底部操作按钮 */
.bottom-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 16px;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.add-address-btn {
  width: 100%;
  background: #1890ff;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.add-address-btn:hover {
  background: #096dd9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.add-icon {
  font-size: 18px;
  font-weight: bold;
}

/* 地址列表样式 */
.address-list {
  padding: 0;
  width: 100%;
}

.address-item {
  background-color: #fff;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.address-info {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.address-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.recipient-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.phone-number {
  font-size: 14px;
  color: #666;
}

.default-tag {
  background-color: #1890ff;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.address-detail {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.address-actions {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
}

.address-actions .action-btn {
  flex: 1;
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.edit-btn {
  color: #1890ff;
  border-color: #1890ff;
}

.edit-btn:hover {
  background-color: #1890ff;
  color: white;
}

.delete-btn {
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.delete-btn:hover {
  background-color: #ff4d4f;
  color: white;
}

.default-btn {
  color: #52c41a;
  border-color: #52c41a;
}

.default-btn:hover {
  background-color: #52c41a;
  color: white;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .address-header {
    padding: 12px;
  }
  
  .header-title {
    font-size: 16px;
  }
  
  .action-btn {
    font-size: 14px;
    padding: 6px;
  }
  
  .empty-text {
    font-size: 14px;
  }
  
  .add-address-btn {
    padding: 14px;
    font-size: 15px;
  }

  .address-info {
    padding: 14px;
  }

  .address-actions {
    padding: 10px 14px;
    gap: 8px;
  }

  .address-actions .action-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
}
